package com.kgcx.push.service;

import com.kgcx.push.entity.DriverLog;
import com.kgcx.push.mapper.DriverMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 何凯
 * @version 0.1
 * @description
 * @time 2018/5/9 15:20
 * @since 0.1
 */
@Service
public class DriverService{
    @Autowired
    private DriverMapper driverMapper;

    /**
     * 查询所有
     * @return
     */
    public List<DriverLog> selectList() {
       return driverMapper.selectAll();
    }

    /**
     * 清空所有数据
     */
    public void deleteAll(){ driverMapper.delete(new DriverLog()); }
}
